﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using APH.Parl2.Shared.Contracts;
using System.ServiceModel;
using APH.Parl2.Data.DataAccess.Publishing;
using APH.Parl2.Data.Model.Publishing.ReadModel;

namespace APH.Parl2.Business.Search
{
    public class SearchManager : ISearchManager
    {
        public IEnumerable<Document> FindDocumentByTitle(string title)
        {
            return ReadHelper.GetDocumentsByTitle(title);
        }

        public string GetDocumentContentAsHTML(Guid id)
        {
            return ReadHelper.GetDocumentContentAsHTML(id);
        }
    }
}
